let {resolve} = require('path');

// 第一个参数：必须得是绝对路径
// 从第二个开始：必须得是相对路径
// console.log(resolve);
// let url = resolve(__dirname,"./build/js");

// __dirname 获取当前文件所在文件夹的绝对路径
// let str = __dirname + '/build/js';

// d/atguigu/code./build/js

let obj = {
    entry:['./src/main.js','./src/js/index.js'],
    output:{
        path:resolve(__dirname,"./build/js"),
        filename:"main.js",
        clean:true
    },
    mode:'production'
}

module.exports = obj;